package net.thxjj.mobileServer.service;

import net.thxjj.mobileServer.entity.EmailCodeBean;
import net.thxjj.mobileServer.util.ParameterMap;
import org.springframework.stereotype.Component;

import java.util.HashMap;

@Component
public interface IUaaService {

    public HashMap<String, Object> oneKeyCreateAndLogin(ParameterMap pm);

    public HashMap<String, Object> emailRegister(ParameterMap pm);

    public HashMap<String, Object> emailReset(ParameterMap pm);

    public boolean  isUserExist(String username,String pid);

    public boolean  isPidExist(String pid);

    public long  insertEmailVerifyCode(EmailCodeBean emailCodeBean);

    public boolean checkRegisterEmailCode(String code,String email,String pid,String sessionId);

    public boolean checkResetEmailCode(String code,String email,String pid,String sessionId);
}
